package com.soft.javase.day01.practice;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/15
 */
public class Emperor {
    private String name;
    private String time;
    private String achievement;
    private String description;

    public Emperor(String name, String time, String achievement, String description) {
        this.name = name;
        this.time = time;
        this.achievement = achievement;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAchievement() {
        return achievement;
    }

    public void setAchievement(String achievement) {
        this.achievement = achievement;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void show(){
        System.out.println("姓名："+name + "\n" +
                           "在位时间："+time + "\n" +
                           "政绩："+achievement + "\n" +
                           "描述："+description);

    }
}
